|
C has no special
type to represent logical or boolean values. It improvises by using any of
the integral types char, int, short, long, unsigned, with a value of 0
representing false and any other value representing true. It is rare for
logical values to be stored in variables. They are usually generated as
required by comparing two numeric values. This is where the comparison
operators are used, to compare two numeric values and produce a logical
result.
|